﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP.master" AutoEventWireup="true"
    CodeFile="ViewLog.aspx.cs" Inherits="logging_ViewLog" %>

<%@ Register Src="Components/SoapList.ascx" TagName="SoapList" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MP1" runat="Server">
    <div id="soap-logging">
        <uc1:SoapList ID="SoapList1" runat="server" />
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script language="javascript" type="text/javascript">
        //EnhanceTextarea('soap-logging');
        $().ready(function () {
            var file = getUrlParam('file');
            if (file != null && file != "") {
                var fileInfo = file.split('/');
                if (fileInfo.length > 0) {
                    var title = fileInfo[fileInfo.length - 1];
                    if (fileInfo.length > 1) {
                        title = fileInfo[fileInfo.length - 2] + '/' + title;
                    }
                    document.title = title;
                }
            }
        });
        function ViewLog(sender,vType) {
            $(sender).parent().parent().find('input[name^=\'type-\']').val(vType);
            $(sender).parent().parent().attr('action', '../Viewer.aspx')[0].submit();
        }
    </script>
</asp:Content>

